<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>菜单管理</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="../../../lib/layui/css/layui.css" media="all"/>
        <link rel="stylesheet" href="../../../css/public.css" media="all"/>
    </head>
    <body class="childrenBody">
        <form class="layui-form">
            <blockquote class="layui-elem-quote quoteBox">
                <form class="layui-form">
                    <div class="layui-row">
                        菜单id:
                        <div class="layui-input-inline">
                            <input type="text" name="menuId" id="menuId" class="layui-input"/>
                        </div>
                        菜单名:
                        <div class="layui-input-inline">
                            <input type="text" name="name" id="name" class="layui-input"/>
                        </div>
                    </div>
                    <div class="layui-row">
                        父菜单Id:
                        <div class="layui-input-inline">
                            <input type="text" name="parentId" id="parentId" class="layui-input"/>
                        </div>
                        类型：
                        <div class="layui-inline">
                            <select name="type" id="type">
                                <option value="">全部</option>
                                <option value="0">目录</option>
                                <option value="1">菜单</option>
                            </select>
                        </div>
                        状态：
                        <div class="layui-inline">
                            <select name="status" id="status">
                                <option value="">全部</option>
                                <option value="1">启用</option>
                                <option value="0">不启用</option>
                            </select>
                        </div>
                    <a class="layui-btn search_btn" data-type="reload">搜索</a>
                    </div>
                </form>
            </blockquote>
            <div class="layui-inline">
                <a class="layui-btn layui-btn-normal" id="addNews_btn">添加菜单</a>
            </div>
            <table id="list" lay-filter="list"></table>

            <!--操作-->
            <script type="text/html" id="listBar">
                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                {{# if(d.status!=0){}}
                <a class="layui-btn layui-btn-xs" lay-event="pass">启用</a>
                {{#}}}
                {{# if(d.status==1){}}
                <a class="layui-btn layui-btn-xs" lay-event="notPass">不启用</a>
                {{#}}}
            </script>
        </form>
        <script type="text/javascript" src="../../../lib/layui/layui.all.js"></script>
        <script type="text/javascript" src="../../../lib/moment.js"></script>
        <script type="text/javascript" src="list.js"></script>
    </body>
</html>